#ifndef AIRPLANE_H
#define AIRPLANE_H

#include <QWidget>
#include <QTimer>
#include <QPainter>
#include <QMouseEvent>

class airplane : public QWidget
{
    Q_OBJECT

public:
    airplane(QWidget *parent = 0);
    ~airplane();
protected:
    void paintEvent(QPaintEvent *event);
    void mousePressEvent(QMouseEvent *event);
private:
    QPixmap *planeImg;
    QRect *planeImgRect;
    QTimer *planeTimer;
protected:
    int shrinkMultiple;
    int speed;
    bool stop;
signals:
    void clicked();
public slots:
    void mousePressEventSLOT();
    void run();
};

#endif // AIRPLANE_H
